<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */
 
$db['smallprogram_columns']=array (
    'columns' =>
    array (
        'id' =>
        array (
            'type' => 'int unsigned',
            'required' => true,
            'pkey' => true,
            'extra' => 'auto_increment',
            'comment' => app::get('site')->_('小程序轮播表'),
        ),
        'title' =>
        array (
            'type' => 'varchar(100)',
            'required' => true,
            'default' => '',
            'label'=>app::get('site')->_('标题'),
            'width'=>100,
            'default_in_list'=>true,
            'in_list'=>true,
        ),
        'custom_url' =>
        array (
            'type' => 'varchar(200)',
            'default' => '',
            'label' => app::get('site')->_('自定义链接'),
            'width' => 160,
            'default_in_list'=>true,
            'in_list'=>true,
        ),
        'images' =>
            array (
                'type' => 'varchar(255)',
                'label' => app::get('b2c')->_('图片'),
                'label' => app::get('site')->_('轮播图'),
                'width' => 160,
                'default_in_list'=>true,
                'in_list'=>true,
                'order'=>1,
            ),
        'tostr' =>
            array (
                'type' => 'longtext',
                'comment' => app::get('b2c')->_('轮播文字'),
            ),
        'display_order' => 
        array (
            'type' => 'tinyint(4) unsigned',
            'required' => true,
            'default' => 0,
            'width'=>80,
            'label' => app::get('site')->_('排序'),
            'default_in_list'=>true,
            'in_list' => true,
        ),
        'base' =>
            array (
                'type' => array(
                    'index' =>app::get('site')->_('首页'),
                ),
                'required' => true,
                'default' =>'index',
                'comment' => app::get('site')->_('轮播图页面地址'),
            ),
        'location' =>
            array (
                'type' => array(
                    'banner' =>app::get('site')->_('banner广告'),
                ),
                'required' => true,
                'default' =>'banner',
                'comment' => app::get('site')->_('轮播图显示位置'),
            ),
        'is_open' =>
            array (
                'type' => 'bool',
                'label' => app::get('site')->_('状态'),
                'default' => 'false',
                'editable' => false,
                'comment' => app::get('site')->_('轮播图是否开启'),
                'default_in_list'=>true,
                'in_list' => true,
            ),
    ),
    'comment' => app::get('site')->_('轮播图表'),
);
